package com.vst.demo.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.vst.demo.dao.ILoginDao;
import com.vst.demo.domain.User;
import com.vst.demo.service.ILoginService;
import com.vst.orm.base.BaseManager;;

@Service("loginService")
public class LoginService extends BaseManager<User, Integer> implements ILoginService
{
	@Autowired
	private ILoginDao loginDao;

	public boolean login(User user) 
	{
		
		System.out.println("LoginService : Hello " + user.getUserName() + ",Your password is: " + user.getPassword());
		
		//List<User> list = loginDao.getAllUser();
		
		List<User> list = this.findAll();
		
		System.out.println("list size : " + list.size());
		return false;
	}
	

}
